<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    //对象复制
    let person1={"name":"lucy","age":20};
    let  person2={...person1}
  //  console.log(person2);

    //2对象合并
    let name={name:"mary"};
    let age={age:20};
    let p2={...name,...age};
    console.log(p2)
</script>
</html>